﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace QuanLyDaiLy.Model
{
    [Table(Name="MatHang")]
    public class CMatHang
    {
        #region Properties
        [Column(Name = "MaMatHang", IsPrimaryKey = true)]
        public int MaMatHang { get; set; }

        [Column(Name = "TenMatHang")]
        public string TenMatHang { get; set; }

        [Column(Name = "SoLuongTon")]
        public int SoLuongTon { get; set; }

        [Column(Name = "DonGiaQuyDinh")]
        public int DonGiaQuyDinh { get; set; }

        #endregion
        
        #region Constructor
        public CMatHang()
        { }

        public CMatHang(int mamathang,string tenmathang, int soluongton, int dongiaquydinh)
        {
            this.MaMatHang = mamathang;
            this.TenMatHang = tenmathang;
            this.SoLuongTon = soluongton;
            this.DonGiaQuyDinh = dongiaquydinh;

        }

        #endregion
    }
}
